namespace JlPay.Sdk.Core
{
    /// <summary>
    /// 嘉联支付SDK配置类
    /// </summary>
    public class Config
    {
        /// <summary>
        /// 商户私钥（PEM格式或十六进制字符串）
        /// </summary>
        public string PrivateKey { get; set; } = string.Empty;

        /// <summary>
        /// 嘉联支付公钥（PEM格式）
        /// </summary>
        public string JlpayPublicKey { get; set; } = string.Empty;

        /// <summary>
        /// 应用ID
        /// </summary>
        public string AppId { get; set; } = string.Empty;

        /// <summary>
        /// API基础URL
        /// </summary>
        public string BaseUrl { get; set; } = "https://openapi.jlpay.com";

        /// <summary>
        /// 调试模式
        /// </summary>
        public bool Debug { get; set; } = false;

        /// <summary>
        /// 请求超时时间（毫秒）
        /// </summary>
        public int TimeoutMs { get; set; } = 30000;

        /// <summary>
        /// 自动加密敏感字段
        /// </summary>
        public bool AutoEncrypt { get; set; } = true;

        /// <summary>
        /// 自动解密响应字段
        /// </summary>
        public bool AutoDecrypt { get; set; } = true;

        /// <summary>
        /// 加密算法类型
        /// </summary>
        public string CryptoAlg { get; set; } = "SM2WithSM4";
    }
} 